home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / powerb5.zip / P5MSC002.TIP < prev    next >
Text File  |  1993-06-01  |  4KB  |  78 lines

  1. "File open" dialog boxes often give only a partial listing
  2. of a directory (e.g. '*.wri' for Windows Write, '*.pas' for
  3. Turbo Pascal, '*.txt' for Windows Notepad, and so on). I got
  4. tired of this, so I sat down with The Norton Utilities and
  5. changed the file specs in all my executable files to '*.*'.
  6. To do this, make a new copy of the file and search it for
  7. the undesirable extension. Type a * and two spaces after the
  8. period, and your directory listings will be full of files
  9. forever.
  10.  
  11. Daniel Woo
  12. Huntsville, Alabama
  13.  
  14. Editor's Note: This daring technique can be very useful for
  15. applications that default their file browsers to files with
  16. certain extensions. It doesn't work with everything, but it
  17. should work with a good many programs, including most
  18. Windows accessories. However, it's recommended only for
  19. those who are bold enough to risk a system crash if
  20. something goes awry. If you're willing to take the chance,
  21. here's how to use The Norton Utilities 6.0 Disk Editor to
  22. make the patch. We'll use the Windows Notepad as our sample
  23. application because its browser shows only files with the
  24. TXT extension, and text files have many more extensions than
  25. that. You must be out of Windows to make this change,
  26. because the Disk Editor won't and shouldn't run in a
  27. multitasking environment.
  28.  
  29. First, make your WINDOWS directory the current one, and copy
  30. NOTEPAD.EXE to NEWNOTE.EXE in order to avoid losing the
  31. original program. Start the Disk Editor with the command
  32. DISKEDIT NEWNOTE.EXE /W (depending on how you installed
  33. Norton, you may need to type DE instead of DISKEDIT). The /W
  34. switch forces the editor to let you write changes to the
  35. file. If you've entered the command correctly, you'll find
  36. yourself in the Norton Disk Editor,  with the file displayed
  37. in hexadecimal on the left and in ASCII on the right. Press
  38. <Ctrl>-S to start a search, specify *.txt as your search
  39. string, and press <Enter>. Once the string is found, press
  40. <Right> to bring up the cursor, and <Tab>, if needed, to
  41. move it from the hex to the ASCII. Change the "*.TXT" to
  42. "*.*  " , putting two spaces after the second star. (In some
  43. programs, you can also shorten the string by placing a zero
  44. byte after the second star. However, the spaces work just as
  45. well in virtually all programs, and they ensure
  46. compatibility.)
  47.  
  48. Next, press <Ctrl>-G to confirm that you want to write to
  49. disk and to search for more occurrences of the pattern (in
  50. the case of Notepad, there will be one more). Finally, leave
  51. the disk editor by pressing <Ctrl>-Q.
  52.  
  53. Back at the DOS prompt, type win newnote to see what you've
  54. done. You should find that the default file search pattern
  55. in the program is now *.*. When you feel confident that the
  56. modified program works, rename the original to something
  57. like OLDNOTE.EXE, and rename the altered version
  58. NOTEPAD.EXE.
  59.  
  60. It shouldn't happen with Notepad, but when you modify
  61. another program, you may find that rather than changing the
  62. default extension for the "file open" box, you've
  63. unwittingly changed the extension used by a different part
  64. of the program. This will cause problems later. So if your
  65. change doesn't appear to have worked, revert immediately to
  66. the original version of the program. Finally, if your
  67. application program checks itself for modifications by
  68. viruses, beware: You may find that patching the code sets
  69. off a false alarm.
  70.  
  71.  
  72. Title: Seeing All Your Files
  73. Category: MSC
  74. Issue Date: April, 1992
  75. Editor: Brett Glass
  76. Supplementary Files: None
  77. Filename: P5MSC002.TIP
  78.